import { ApiProperty } from "@nestjs/swagger";

export enum KitTag {
    FORM='FORM',
    SEARCH_LIST='SEARCH_LIST',
    TABLE='TABLE',
    MODAL_FORM='MODAL_FORM',
}

export type KitTags = Array<KitTag&string>;

export class CreateKitDto {
    @ApiProperty(
        {
            description: 'kit名称',
            example: '表单',
        }
    )
    name: string;
    
    @ApiProperty(
        {
            description: 'kit描述',
            example: '表单套件',
        }
    )
    description: string;

    @ApiProperty(
        {
            description: 'kit标签',
            example: ['FORM','SEARCH_LIST'],
        }
    )
    tag: KitTags;

    @ApiProperty(
        {
            description: 'kit内容',
            example: '表单内容',
        }
    )
    content: string;

    @ApiProperty(
        {
            description: 'kit图片',
            example: '表单图片',
        }
    )
    imageUrl: string;
}
